package structure.Facade;

/**
 * Created by LYJ on 2016/10/19.
 * 门面角色
 */
public class Facade {
    private Class1 one=new Class1();
    private Class2 two=new Class2();
    private Class3 three=new Class3();
    public void op1(){
        System.out.println("Facade op1()");
    }
    public void op2(){
        System.out.println("Facade op2()");
    }
    public void op3(){
        System.out.println("Facade op3()");
    }
    public void method(){
        System.out.println("Facade method");
        three.op3();
        two.op2();
        one.op1();
    }

}
